package com.wnnight.wys.service.car;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wnnight.wys.entity.car.Car;

import java.util.List;

/**
 * @ClassName: CarService
 * @Description: 车辆接口
 * @author: CHX42
 * @date: 2022/8/28-13:31
 * @version: v1.0
 */
public interface CarService extends IService<Car> {
    void insert(Car car);

    List<Car> getAll(Car car);

    void xfCar(Car car, Wrapper wrapper);

    Page<Car> getPage(IPage<Car> carPage, Wrapper wrapper);
    Integer getIdByPhone(String phone);

    /**
     * @Author 根据业主id查询车辆信息
     * @Description //TODO
     * @Date  2022/9/8  14:37
     * @Param [landlordId]
     * @return java.util.List<com.wnnight.wys.entity.car.Car>
     **/
    List<Car> getByLandlordId(Integer landlordId);
}
